package cn.bdqn.dao;

import cn.bdqn.pojo.Announcement;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 正文
 * @date 2020/6/24 - 17:21
 */
@Mapper
@Repository
//公告
public interface AnnouncementMapper {
    //查询公告
    List<Announcement> getList();
    //测试git代码冲突
    String  test();
    //添加公告
    int add(Announcement auun);
    //根据id查询公告
    List<Announcement> getListById(@Param("id") int id);
    //删除公告
    int delete(@Param("id") int id);
    //修改公告
    int update(Announcement auun);
}
